//
//  AFUIHelper.m
//  AFChat
//
//  Created by Void on 2018/6/25.
//  Copyright © 2018年 afei. All rights reserved.
//

#import "AFUIHelper.h"
#import "AFMenuItem.h"

@implementation AFUIHelper

+ (NSMutableArray *)getMineVCItems {
    NSMutableArray *item = [NSMutableArray array];
    AFMenuItem *bank = createMenuItem(@"mine_wallet", LOCSTR(@"钱包"));
    bank.subTitle = @"新入账1024元";
    AFMenuItemGrounp *group1 = [[AFMenuItemGrounp alloc]initWithHeaderTitle:nil footerTitle:nil cellItems: bank ,nil];
    [item addObject:group1];
    
    AFMenuItem *favorite = createMenuItem(@"mine_favorites", LOCSTR(@"收藏"));
    favorite.badge = @"2";
    favorite.rightIconURL = @"http://pic1.win4000.com/wallpaper/c/5791e49b37a5c.jpg";
    favorite.showRightIconBadge = YES;
    favorite.subTitle = @"新入账1024元";
    AFMenuItem *album = createMenuItem(@"mine_album", LOCSTR(@"相册"));
    AFMenuItem *expression = createMenuItem(@"mine_expression", LOCSTR(@"表情"));
    AFMenuItemGrounp *group2 = [[AFMenuItemGrounp alloc] initWithHeaderTitle:nil footerTitle:nil cellItems:favorite,album,expression,nil];
    [item addObject:group2];
    
    AFMenuItem *setting = createMenuItem(@"mine_setting", LOCSTR(@"设置"));
    AFMenuItemGrounp *group3 = [[AFMenuItemGrounp alloc] initWithHeaderTitle:nil footerTitle:nil cellItems:setting,nil];
    [item addObject:group3];
    
    return item;
}

+ (NSMutableArray *)getDiscoverItems {
    
    NSMutableArray *items = [NSMutableArray array];
    
    AFMenuItem *moments = createMenuItem(@"discover_album", LOCSTR(@"朋友圈"));
    [moments setRightIconURL:@"http://i01.pic.sogou.com/23112449ac395e72" withRightIconBadge:YES];
    AFMenuItemGrounp *group1 = [[AFMenuItemGrounp alloc] initWithHeaderTitle:nil footerTitle:nil cellItems:moments,nil];
    [items addObject:group1];
    
    AFMenuItem *qrCode = createMenuItem(@"discover_scaner", LOCSTR(@"扫一扫"));
    AFMenuItem *shake = createMenuItem(@"discover_shake", LOCSTR(@"摇一摇"));
    AFMenuItemGrounp *group2 = [[AFMenuItemGrounp alloc] initWithHeaderTitle:nil footerTitle:nil cellItems:qrCode,shake,nil];
    [items addObject:group2];
    
    AFMenuItem *read = createMenuItem(@"discover_read", LOCSTR(@"看一看"));
    AFMenuItem *search = createMenuItem(@"discover_search", LOCSTR(@"搜一搜"));
    AFMenuItemGrounp *group3 = [[AFMenuItemGrounp alloc] initWithHeaderTitle:nil footerTitle:nil cellItems:read,search,nil];
    [items addObject:group3];
    
    AFMenuItem *loacation = createMenuItem(@"discover_location", LOCSTR(@"附近的人"));
    AFMenuItem *bottle = createMenuItem(@"discover_bottle", LOCSTR(@"漂流瓶"));
    AFMenuItemGrounp *group4 = [[AFMenuItemGrounp alloc] initWithHeaderTitle:nil footerTitle:nil cellItems:loacation,bottle,nil];
    [items addObject:group4];
    
    AFMenuItem *shopping = createMenuItem(@"discover_shopping", LOCSTR(@"购物"));
    AFMenuItem *game = createMenuItem(@"discover_game", LOCSTR(@"游戏"));
    [game setRightIconURL:@"http://qq1234.org/uploads/allimg/140404/3_140404151205_8.jpg" withRightIconBadge:YES];
    [game setSubTitle:@"英雄联盟计算器版"];
    AFMenuItemGrounp *group5 = [[AFMenuItemGrounp alloc] initWithHeaderTitle:nil footerTitle:nil cellItems:shopping,game,nil];
    [items addObject:group5];
    
    AFMenuItem *program = createMenuItem(@"discover_app", LOCSTR(@"小程序"));
    AFMenuItemGrounp *group6 = [[AFMenuItemGrounp alloc] initWithHeaderTitle:nil footerTitle:nil cellItems:program,nil];
    [items addObject:group6];
    
    return items;
}

@end
